home *** CD-ROM | disk | FTP | other *** search
/ MacFormat España 4 / MacFormat n. 4 (Spain) / MacFormat 4.bin / La ciudad del ShareWare / Desarrollo / OutOfPhase1.1 Source / OutOfPhase Folder / ASTPrintString.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-27  |  1.2 KB  |  44 lines

  1. /* ASTPrintString.h */
  2.  
  3. #ifndef Included_ASTPrintString_h
  4. #define Included_ASTPrintString_h
  5.  
  6. /* ASTPrintString module depends on */
  7. /* MiscInfo.h */
  8. /* Audit */
  9. /* Debug */
  10. /* Definitions */
  11. /* TrashTracker */
  12. /* Memory */
  13. /* ASTExpression */
  14. /* PcodeObject */
  15. /* CompilerRoot */
  16.  
  17. #include "PcodeObject.h"
  18. #include "CompilerRoot.h"
  19.  
  20. struct ASTPrintStringRec;
  21. typedef struct ASTPrintStringRec ASTPrintStringRec;
  22.  
  23. /* all memory allocated in this module is through TrashTracker */
  24.  
  25. /* forwards */
  26. struct TrashTrackRec;
  27. struct ASTExpressionRec;
  28.  
  29. /* create a new AST string print */
  30. ASTPrintStringRec*    NewPrintString(char* String, struct TrashTrackRec* TrashTracker,
  31.                                             long LineNumber);
  32.  
  33. /* type check the string print node.  this returns eCompileNoError if */
  34. /* everything is ok, and the appropriate type in *ResultingDataType. */
  35. CompileErrors                TypeCheckPrintString(DataTypes* ResultingDataType,
  36.                                             ASTPrintStringRec* PrintString, long* ErrorLineNumber,
  37.                                             struct TrashTrackRec* TrashTracker);
  38.  
  39. /* generate code for a string print.  returns True if successful, or False if it fails. */
  40. MyBoolean                        CodeGenPrintString(struct PcodeRec* FuncCode,
  41.                                             long* StackDepthParam, ASTPrintStringRec* PrintString);
  42.  
  43. #endif
  44.